package com.xl.rpc.client;

import com.xl.rpc.Peer;
import com.xl.rpc.codec.Decoder;
import com.xl.rpc.codec.Encoder;
import com.xl.rpc.codec.JSONDecoder;
import com.xl.rpc.codec.JSONEncoder;
import com.xl.rpc.transport.HTTPTransportClient;
import com.xl.rpc.transport.TransportClient;
import lombok.Data;

import java.util.Arrays;
import java.util.List;

/**
 * @author 辜圆圆
 * @description: gzy的项目
 * @date 2020/3/10 2:06 AM
 */
@Data
public class RpcClientConfig {
    private Class<? extends TransportClient> transportClass = HTTPTransportClient.class;

    private Class<? extends Encoder> encoderClass= JSONEncoder.class;
    private Class<? extends Decoder> devoderClass = JSONDecoder.class;
    private Class<? extends TransportSelector> selectorClass= RandomTransportSelector.class;

    private int connectCount = 1;
    private List<Peer> servers = Arrays.asList(
            new Peer("127.0.0.1",3000)
    );


}
